package v1

import (
	v1 "chat/app/service/v1"
	"net/http"
)

func (c *App) CreateGroup() {
	data := v1.CreateGroupService(c.Ctx, c.Context)
	c.JSON(http.StatusOK, data)
}

func (c *App) JoinGroup() {
	data := v1.JoinGroupService(c.Ctx, c.Context)
	c.JSON(http.StatusOK, data)
}

func (c *App) GroupList() {
	data := v1.GroupListService(c.Ctx, c.Context)
	c.JSON(http.StatusOK, data)
}
